<style>
    .smart-widget-body tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
    }
    input[name=iScheduleStatus].form-control{
        width: 12px;
        height: 12px;
    }
</style>
<script>
    var schedule = {{ schedule |json_encode }};
    var scheduleId = {{ scheduleId |json_encode }};
</script>
<form id="xh_form" class="xh-form" method="post" target="submitForm" >
                    <div style="padding: 20px 20px 50px 20px;background-color: #f9f9f9">
                        <div style="margin-bottom: 20px">
                            日程名称：<input type="text" class="form-control" id="sScheduleName" name="sScheduleName" value="{{schedule.sScheduleName}}" style="width: 300px;display:inline-block;" autocomplete="off">
                        </div>
                        <div style="margin-bottom: 20px">
                            <span style="float: left;">日程描述：</span>  <textarea class="form-control" rows="4" id="sScheduleContent" name="sScheduleContent" style="width: 300px;display:inline-block;">{{schedule.sScheduleContent}}</textarea>
                        </div>
                        <div style="margin-bottom: 20px;">
                            开始时间：<input type="text"  class="form-control" id="tFromAt" value="{{schedule.tFromAt}}" name="tFromAt" style="width: 200px;display:inline-block;" autocomplete="off">
                        </div>
                        <div style="margin-bottom: 20px;">
                            结束时间：<input type="text" class="form-control" id="tEndAt" value="{{schedule.tEndAt}}" name="tEndAt" style="width: 200px;display:inline-block;" autocomplete="off">
                        </div>
                        <input type="hidden" name="iScheduleId" value="{{ schedule.iScheduleId }}"/>
                        {% if schedule.iScheduleId %}
                        <div style="margin-bottom: 20px">
                            日程状态：
                            <label class="radio-inline">
                                <input type="radio" name="iScheduleStatus" value="1"{% if schedule.iScheduleStatus == 1 %} checked{% endif  %}> 待处理
                            </label>
                             <label class="radio-inline">
                                <input type="radio" name="iScheduleStatus" value="2"{% if schedule.iScheduleStatus == 2 %} checked{% endif  %}> 进行中
                            </label>

                            <label class="radio-inline">
                                <input type="radio" name="iScheduleStatus" value="3" {% if schedule.iScheduleStatus ==3 %} checked{% endif  %}> 已完成
                            </label>

                            <label class="radio-inline">
                                <input type="radio" name="iScheduleStatus" value="4" {% if schedule.iScheduleStatus ==4 %} checked{% endif  %}> 已关闭
                            </label>

                        </div>
                        {% endif  %}
                        <div>
                            <a id="bt_form_add" style="background-color: #2c81ba" class="btn btn-primary">提交</a>
                            {% if schedule.iScheduleId %}
                            <a id="bt_form_del" class="btn btn-danger">删除</a>
                            {% endif  %}
                            <a id="bt_form_back" class="btn btn-default">关闭</a>
                        </div>
                    </div>
</form>